target1=cloudd80
target2=cloudd443
target=$(target1) $(target2)
source=main.cc

cxx=g++
args=-std=c++17
libs=-ljsoncpp -lsnappy -lmysqlclient -lssl -lcrypto
public=../public

.PHONY:public clean

all:$(target)

$(target1):$(source)
	$(cxx) -o $@ $^ $(args) $(libs)
$(target2):$(source)
	$(cxx) -o $@ $^ $(args) $(libs) -D HTTPS

public:$(public)
	mv $(target) $(public)
	
clean:
	rm -rf $(target)
